package gdou.gym.entity;

public class Orders {
    private String no;

    private String orderTime;

    private String orderSpaceNo;

    private String account;

    private Double orderCost;

    private Boolean state;

    public String getNo() {
        return no;
    }

    public Orders() {
    }


    public Orders(SpaceTime spaceTime, Space space) {
        setOrderTime(spaceTime.getTime());
        setOrderCost(space.getCost());
        setOrderSpaceNo(space.getNo());
        setState(false);
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime == null ? null : orderTime.trim();
    }

    public String getOrderSpaceNo() {
        return orderSpaceNo;
    }

    public void setOrderSpaceNo(String orderSpaceNo) {
        this.orderSpaceNo = orderSpaceNo == null ? null : orderSpaceNo.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public Double getOrderCost() {
        return orderCost;
    }

    public void setOrderCost(Double orderCost) {
        this.orderCost = orderCost;
    }

    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }
}